home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / C / ASAP / vsprite.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-09-09  |  1.7 KB  |  49 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * AVSprite wrapper class                                                    *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_AVSprite_H
  12. #define ASAP_AVSprite_H
  13.  
  14. extern "C"
  15. {
  16.  #include <Proto/Graphics.h>
  17. }
  18.  
  19. class AVSprite : public VSprite
  20. {
  21.  public:
  22.  inline void AddVSprite(RastPort * rp);
  23.  inline static void InitGels(VSprite * head, VSprite * tail, GelsInfo * gelsInfo);
  24.  inline void InitMasks();
  25.  inline void RemVSprite();
  26. };
  27. //----------------------------------------------------------------------------
  28. void AVSprite::AddVSprite (RastPort * rp)
  29. {
  30.  ::AddVSprite(this, rp);
  31. }
  32. //----------------------------------------------------------------------------
  33. void AVSprite::InitGels (VSprite * head, VSprite * tail, GelsInfo * gelsInfo)
  34. {
  35.  ::InitGels(head, tail, gelsInfo);
  36. }
  37. //----------------------------------------------------------------------------
  38. void AVSprite::InitMasks ()
  39. {
  40.  ::InitMasks(this);
  41. }
  42. //----------------------------------------------------------------------------
  43. void AVSprite::RemVSprite ()
  44. {
  45.  ::RemVSprite(this);
  46. }
  47.  
  48. #endif
  49.